home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / WCLASS95.ZIP / ST1MAIN.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-25  |  881 b   |  31 lines

  1. #include "controll.h"
  2.  
  3. int main ()
  4.   //Use with ST1STATE.OMT and ST1HEAD1.SCT, ST1FUNC1.SCT, ST1HEAD2.SCT, and ST1FUNC2.SCT        
  5.   //Controller controller1;
  6.   //controller1.process (turnOn);
  7.   //controller1.process (turnOff);
  8.   //return 0;
  9.  
  10.   //Use with ST1STATE.OMT and ST1HEAD3.SCT and ST1FUNC3.SCT, ST1HEAD5.SCT, ST1FUNC5.SCT         
  11.   Controller controller1;
  12.   controller1.turnOn (1);
  13.   controller1.turnOff ();
  14.   return 0;
  15.  
  16.   //Use with ST1STATE.OMT and ST1HEAD4.SCT and ST1FUNC4.SCT     
  17.   //pOffState = new OffState();
  18.   //pOnState = new OnState();
  19.   //State *pCurrentState;
  20.   //pCurrentState = pOffState;
  21.   //pCurrentState = pCurrentState->turnOn(1);     
  22.   //pCurrentState = pCurrentState->turnOff();    
  23.   //return 0;
  24.  
  25.   //Use with ST1STATE.OMT and ST1C1.SCT and ST1C2.SCT 
  26.   //process (turnOn);
  27.   //process (turnOff);
  28.   //return 0;
  29. }
  30.